<template>
  <div class="my-con">
    <div v-for="(item, index) in myData" :key="index" class="my-box">
      <div class="my-top">
        <div class="top-tit">
          {{ item.name }}提交的{{ item.text }}
        </div>
        <div class="top-btn">
          <span>{{ item.btn }}</span>
        </div>
        <div class="top-icon">
          <van-icon name="edit" style="margin-right:3px;" />
          <van-icon name="revoke" />
        </div>
      </div>
      <div class="top-time">
        {{ item.time }}
      </div>
      <div class="top-ask">
        <div>请假类型</div>
        <div>{{ item.type }}</div>
      </div>
      <div class="top-start">
        <div>开始日期</div>
        <div>{{ item.start }}</div>
      </div>
      <div class="top-end">
        <div>结束日期</div>
        <div>{{ item.end }}</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    myData: {
      type: Array,
    },
  },
  data() {
    return {

    }
  },
  mounted() {

  },
  methods: {

  },
}
</script>
<style lang="scss" scoped>
.my-con{
    margin-bottom: 66px;
    width:100%;
    height:auto;
    margin-top: 20px;
    .my-box{
        width: 92%;
        height:155px;
        margin: 0 auto;
        box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.06);
        border-radius: 4px;
        margin-top: 10px;
        padding-top: 15px;
        .my-top{
            display: flex;
            margin: 0 auto;
            width: 93%;
            .top-tit{
                width: 40%;
                color:#333;
                font-size: 16px;
                font-weight: 600;
            }
            .top-btn{
                width: 20%;
                color:#739ECA;
                font-size: 14px;
                span{
                    border:1px solid #739ECA;
                    background:#f1f5f9;
                    border-radius: 3px;
                    padding: 0px 5px;
                }
            }
            .top-icon{
                width: 40%;
                color:#739ECA;
                font-size: 14px;
                text-align: right;
            }
        }
        .top-time{
            font-size: 12px;
            color:#333;
            margin: 0 auto;
            width: 93%;
            padding: 8px 0px;
        }
        .top-ask,.top-start,.top-end{
            display: flex;
            justify-content: space-between;
            margin: 0 auto;
            width: 93%;
            padding: 6px 0px 6px 0px;
            div{
                color:#333;
                font-size: 14px;
            }
        }
    }
}

</style>
